home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1386 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  664 b 

  1. Path: news.production.compuserve.com!news
  2. From: Pascal Pereira <71172.2025@CompuServe.COM>
  3. Newsgroups: comp.lang.c++
  4. Subject: Theoretical C++ Question
  5. Date: 10 Jan 1996 19:46:19 GMT
  6. Organization: cibc.ca
  7. Message-ID: <4d152b$dd2$1@mhafc.production.compuserve.com>
  8.  
  9. I have an old program written in C that uses function pointers. 
  10. Is there any way to mimic function pointer code in C++ or does 
  11. this require a fundamental change to the structure of the 
  12. old code.
  13.  
  14. If it does require a total rewrite, does anyone have a small 
  15. sample of how you could convert a program using function pointers 
  16. to the same program doing the same thing but in C++ concepts.
  17.  
  18. example:
  19.